<?php /* Smarty version Smarty-3.1.12, created on 2016-07-11 14:16:19
         compiled from "D:\phpStudy\WWW\demonew\template\default\model\news_sort.tpl" */ ?>
<?php /*%%SmartyHeaderCode:2449578339b349ac59-95474625%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '66f68312c07f69b51bf5bd32278b8170db848aa3' => 
    array (
      0 => 'D:\\phpStudy\\WWW\\demonew\\template\\default\\model\\news_sort.tpl',
      1 => 1406596914,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '2449578339b349ac59-95474625',
  'function' => 
  array (
  ),
  'variables' => 
  array (
    'news_sort' => 0,
    'volist' => 0,
    'seclist' => 0,
    'thirdlist' => 0,
  ),
  'has_nocache_code' => false,
  'version' => 'Smarty-3.1.12',
  'unifunc' => 'content_578339b34cbf22_99826686',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_578339b34cbf22_99826686')) {function content_578339b34cbf22_99826686($_smarty_tpl) {?><?php if (!is_callable('smarty_modifier_truncate')) include 'D:\\phpStudy\\WWW\\demonew\\source\\core\\plugins\\modifier.truncate.php';
?><ul class="sort">
  <?php  $_smarty_tpl->tpl_vars['volist'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['volist']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['news_sort']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['volist']->key => $_smarty_tpl->tpl_vars['volist']->value){
$_smarty_tpl->tpl_vars['volist']->_loop = true;
?>
  	<li class="layer1">
      <a href="<?php echo $_smarty_tpl->tpl_vars['volist']->value['url'];?>
" class="list_item"><?php echo $_smarty_tpl->tpl_vars['volist']->value['cname'];?>
</a>
      <div class="layer2" style="display:none;">
      	<ul>
        	<?php  $_smarty_tpl->tpl_vars['seclist'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['seclist']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['volist']->value['childcategory']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['seclist']->key => $_smarty_tpl->tpl_vars['seclist']->value){
$_smarty_tpl->tpl_vars['seclist']->_loop = true;
?>
         	  <li>
				<a href="<?php echo $_smarty_tpl->tpl_vars['seclist']->value['url'];?>
" class="list_item"><?php echo smarty_modifier_truncate($_smarty_tpl->tpl_vars['seclist']->value['cname'],20);?>
</a>
				<div class="layer3" style="display:none;">
					<ul>
					<?php  $_smarty_tpl->tpl_vars['thirdlist'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['thirdlist']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['seclist']->value['childcategory']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['thirdlist']->key => $_smarty_tpl->tpl_vars['thirdlist']->value){
$_smarty_tpl->tpl_vars['thirdlist']->_loop = true;
?>
					<li>
						<a href="<?php echo $_smarty_tpl->tpl_vars['thirdlist']->value['url'];?>
" class="list_item"><?php echo smarty_modifier_truncate($_smarty_tpl->tpl_vars['thirdlist']->value['cname'],20);?>
</a>
					</li>
					<?php } ?>
					</ul>
				</div>
			  </li>
            <?php } ?>
        </ul>
      </div>
    </li>
  <?php } ?>   
</ul>

<script type="text/javascript">
$(".layer1").hover
(
	function()
	{
		if($(this).find(".layer2 li").length > 0)
		{
			$(this).find(".layer2").show();
		}
	},
	function()
	{
		$(this).find(".layer2").hide();
	}
);

$(".layer2 li").hover
(
	function()
	{
		if($(this).find(".layer3 li").length > 0)
		{
			$(this).find(".layer3").show();
		}
	},
	function()
	{
		$(this).find(".layer3").hide();
	}
);
</script><?php }} ?>